package com.example.demo.service;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.entity.HERO;
import com.example.demo.mapper.TestMapper;
@Service
public class TestServiceImpl implements TestService{
	@Resource
    TestMapper testMapper; //如果这里编辑器报错了,请在mapper.java中加上@Component("TestMapper")即可.

    @Override
    public String getOne() {
    	System.out.println("进来impl了!");
    	System.out.println(testMapper.getOne());
        return testMapper.getOne();
    }

	@Override
	public HERO sss() {
		HERO getsss = testMapper.getsss();
		System.out.println(getsss);
		// TODO Auto-generated method stub
		return getsss;
	}
}
